# -*- coding: utf-8 -*-
import json
import requests


url = 'https://219.135.214.202:9008/v2x/platform/auth/user/list'

headers = {
    "Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjIxMjc4MzEsInVzZXJfbmFtZSI6InN1cGVyX2FkbWluIiwianRpIjoiZjA5ZjRlYmItYTcwZS00MTdhLWI4ZDktMzQ4MDg0ZTc4ZjNjIiwiY2xpZW50X2lkIjoiZnJvbnRlbmQiLCJzY29wZSI6WyJhbGwiXX0.3zjvZr0-th-vCg1SxacPfLnOTmjX41iux9solLPL8J0",
    "Content-Type":"application/json"
}
payload = json.dumps({
    "username":"",
    "status":"",
    "pageNo":1,
    "pageSize":10
})

r = requests.post(url=url,headers=headers, data=payload,verify = False).text
print(r)
print(type(r))
print(type(r.encode("utf-8")))
print(type(json.loads(r.encode("utf-8"))))

r = requests.post(url=url,headers=headers, data=payload,verify = False,).json()
print(r)
print(type(r))
print(type(json.dumps(r)))

m={'a':12,"b":'b'}
print(type(m))
print(type(json.dumps(m,ensure_ascii=False)))

def aaa():
    m = [{'a': 1, 'b': 'adf'}]
    return m
q = aaa()
print(q,type(q))